package com.hyj.springcloud;

import com.hyj.myRibbonRule.MyRIbbonRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
//1.pom中加了依赖,2.把当前nodule作为eureka client并向eureka server注册自己,3.才可使用该注解.
@EnableEurekaClient
//
@RibbonClient(name = "cloud-provider-service",configuration = MyRIbbonRule.class)
public class OrderMain80 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain80.class, args);
    }
}
